<?php

function selectMessage($bdd) {

    $results = $bdd->query('SELECT * FROM `about`');

    return $results;
}

function UpdateMessage($bdd, $new_about_message) {

    //$bdd->query("UPDATE home
    //    SET  home_message      = '$new_home_message' WHERE ID = 0"  ); 

    $req = $bdd->prepare('UPDATE about SET about_message = :new_about_message');
    $req->execute(array(
        'new_about_message' => $new_about_message
    ));
}

?>
